﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using InvoiceProject.Enums;

namespace InvoiceProject.Models
{
    public class LookupTaxCountry:BaseModel
    {
 
        [Required]
        public Country Country { get; set; }

        
        public decimal TaxRate { get; set; }

        
        public string TaxName { get; set; }



        internal void GetTaxDetailsByCountry()
        {
            if (this.Country == Country.AUS)
            {
                TaxRate = 0.1M;
                TaxName = "GST";
            }

            else
            {

                throw new NotImplementedException("This country type has not been created yet.");
            }
        }



    }
}